
const KEY = 'hkzf_token'
// 设置token
export const setToken = (token) => {
    localStorage.setItem(KEY, token)
}
// 获取token
export const getToken = () => {
    return localStorage.getItem(KEY)
}
// 删除token
export const removeToken = () => {
    localStorage.removeItem(KEY)
}
// 判断 是否登录
export const isAuth = () => {
    return getToken() ? true : false
}
